package edu.sctu.practice.class02.lvchang.assign03.test2;

/**
 * Created by Administrator on 2015/10/23.
 */
public class ComparableCylinder extends Cylinder implements Comparable {


    public ComparableCylinder(double r, double h) {
        super(r,h);
    }

    @Override
    public int compareTo(Object o) {
        if (super.findArea()>((Cylinder) o).findArea()){
            return 1;
        }
            return 0;
    }


}
